import { request } from '@/utils'

// 添加
export function upload(file) {
  const formData = new FormData()
  formData.append('file', file)
  return request({
    url: `/file`,
    method: 'post',
    data: formData,
    // 十分钟
    timeout: 10 * 60 * 1000,
  })
}
